//
//  MemberViewController.m
//  YouinRTCDemo
//
//  Created by super on 2021/10/31.
//

#import "MemberViewController.h"
#import "MemberTableViewCell.h"
@interface MemberViewController ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation MemberViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//    [self setTabLe];
//    self.memberArray = [YouinRTCManager shardManager].userList;
//    [_tableView reloadData];
}
//
//-(void)viewDidLayoutSubviews{
//    [super viewDidLayoutSubviews];
//    [_tableView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.left.right.bottom.mas_equalTo(self.view);
//    }];
//}
//
//-(void)setTabLe{
//
//    _tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
//
//    _tableView.delegate = self;
//    _tableView.dataSource = self;
//    _tableView.showsVerticalScrollIndicator = false;
//    _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
//    _tableView.estimatedRowHeight = 100;
//    _tableView.rowHeight = UITableViewAutomaticDimension;
//    [_tableView registerClass:[MemberTableViewCell class] forCellReuseIdentifier:@"MemberTableViewCell"];
//    _tableView.tableFooterView = [UIView new];
//    [self.view addSubview:_tableView];
//
//    if (@available(iOS 11.0, *)) {
//        self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
//    }else {
//        self.automaticallyAdjustsScrollViewInsets = NO;
//    }
//
//    [self.view addSubview:_tableView];
//
//}
//
//-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
//    return self.memberArray.count;
//
//}
//
//
//
//-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
//
//    MemberTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MemberTableViewCell" forIndexPath:indexPath];
//    cell.selectionStyle = UITableViewCellSelectionStyleNone;
//    cell.info = self.memberArray[indexPath.row];
//    return  cell;
//
//
//}
//
//-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
//
//    [self showAlertSheet:self.memberArray[indexPath.row]];
//}
//
//- (void)showAlertSheet:(userInfoModel *)userInfoModel{
//
//    UIAlertController *alertController = [[UIAlertController alloc] init];
//    UIAlertAction *cancle = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) {
//
//    }];
//
//
//    UIAlertAction *mic = [UIAlertAction actionWithTitle:userInfoModel.is_mic_mute ? @"打开麦克风":@"关闭麦克风" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
//        [[YouinRTCManager shardManager] openSpeakerMike:!userInfoModel.is_mic_mute userId:userInfoModel.youin_user_id];
//    }];
//
//    UIAlertAction *camera = [UIAlertAction actionWithTitle:userInfoModel.is_camera_mute ? @"打开摄像头":@"关闭摄像头" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
//        [[YouinRTCManager shardManager] openSpeakerCamera:!userInfoModel.is_camera_mute userId:userInfoModel.youin_user_id];
//    }];
//
//    UIAlertAction *unpublish = [UIAlertAction actionWithTitle:userInfoModel.interactive? @"下麦" : @"邀请上麦" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {
//        if(userInfoModel.interactive){
//            [[YouinRTCManager shardManager] unPublishUser:userInfoModel.youin_user_id];
//        }else{
//            [[YouinRTCManager shardManager] inviteUserPublish:userInfoModel.youin_user_id];
//        }
//
//    }];
//    //将初始化好的UIAlertAction添加到UIAlertController中
//    [alertController addAction:cancle];
//    [alertController addAction:mic];
//    [alertController addAction:camera];
//    [alertController addAction:unpublish];
//    //将初始化好的j提示框显示出来
//    [self presentViewController:alertController animated:true completion:nil];
//}
//
//
//#pragma mark - JXCategoryListContentViewDelegate
//
///**
// 实现 <JXCategoryListContentViewDelegate> 协议方法，返回该视图控制器所拥有的「视图」
// */
//- (UIView *)listView {
//    return self.view;
//}


@end
